/**
 * 
 */
package org.nanhill.osgi.example.web.impl;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.nanhill.osgi.example.web.LoginService;
import org.osgi.framework.BundleContext;

import com.caucho.hessian.server.HessianServlet;

/**
 * @author lin.wangl
 * 
 */
public class HessianLoginServlet extends HessianServlet {
	private LoginService loginService;

	public HessianLoginServlet(BundleContext context) {
		this.loginService = new DefaultLoginService(context);
		this.setHomeAPI(LoginService.class);
		this.setHome(loginService);

	}

	private static final long serialVersionUID = 3918133846993510538L;

	@Override
	public void service(ServletRequest request, ServletResponse response)
			throws IOException, ServletException {
		super.service(request, response);
	}

}
